package cn.ulc.store.entity.goods;
import cn.ulc.common.constant.enums.AvailableStatus;
import lombok.Data;
import cn.ulc.store.entity.base.BaseModel;
import org.beetl.sql.core.annotatoin.Table;

import java.math.BigDecimal;

/*
* 
* gen by Jin 2019-05-28
*/
@Data
@Table(name="goods")
public class Goods extends BaseModel {

	/*
	条形码
	*/
	private String barCode;
	/*
	商品备注信息
	*/
	private String content;
	private Long goodsTypeId;
	/*
	主图
	*/
	private String mainImage;
	private String name;
	/*
	售价
	*/
	private BigDecimal price;
	private String remark;
	/*
	规格
	*/
	private String spec;
	/*
	网点是否上架
	*/
	private AvailableStatus status;
	/*
	单位
	*/
	private Long unitId;

	private Long siteId;


	//临时字段
	private String typeName;
	private String unitName;
	private GoodsType goodsType;
	private Integer specSize;
	private BigDecimal minPrice;
	private BigDecimal maxPrice;
	private String type;
	private BigDecimal saleCount; // 销售总数量
	private BigDecimal saleAmount; // 销售总额

}
